#include <xscript/xscriptexecutor.h>
#include <astree/xabstractsyntaxtreevalue.h>
#include <astree/xabstractsyntaxtreebuilderimpl.h>

/*XAbstractSyntaxTreeCreatorVariable::XAbstractSyntaxTreeCreatorVariable() {
    setName(L"variable");
}

bool XAbstractSyntaxTreeCreatorVariable::isMatched(const XTokenBlock& tokens, uint32_t row, uint32_t col) {
    if (tokens.size() <= row)
        return false;
    auto items = tokens.at(row);
    if (items.tokens.size() <= col)
        return false;
    return items.tokens.at(col)->asVariable() != nullptr;
}

std::shared_ptr<XAbstractSyntaxTree> XAbstractSyntaxTreeCreatorVariable::create(const XTokenBlock& tokens, uint32_t row, uint32_t col, std::shared_ptr<XAbstractSyntaxTreeBuilder> builder) {
    auto token = tokens.at(row).tokens.at(col++);
    auto ast = std::make_shared<XAbstractSyntaxTreeVariable>(token);
    ast->setName(token->getString());
    return ast;
}
*/
